bin_PROGRAMS = server_sts

server_sts_SOURCES = \
	main.cpp\
	clientattender.h\
	clientattender.cpp\
	clientlistener.h\
	clientlistener.cpp\
	clientservice.h\
	clientservice.cpp\
	screencastservice.h\
	screencastservice.cpp\
	scpersistenceservice.h\
	scpersistenceservice.cpp\
	safemap.h\
	safemap.cpp

server_sts_LDADD = \
	../common/libcommon.a \
	$(LOG4CXX_LIBS) \
	$(LIBXML_LIBS)

server_sts_CPPFLAGS = \
	-I../common \
	$(LOG4CXX_CFLAGS) \
	$(LIBXML_CFLAGS)
	
log4cxx_DATA = \
	log4cxx/serverStsLog4CxxConfig.xml

log4cxxdir = \
	$(pkgdatadir)/log4cxx
	
confXml_DATA = \
	../../conf/users.xml \
	../../conf/courses.xml

confXmldir = \
	$(pkgdatadir)/conf

INCLUDES = \
	-DSERVER_STS_LOG4CXX_DIR=\""$(log4cxxdir)"\" \
	-DSERVER_STS_LOG4CXX_FILENAME=\""$(log4cxx_DATA)"\" \
	-DSERVER_STS_DATA_BASE_DIR=\""$(pkgdatadir)"\"

EXTRA_DIST = \
	$(log4cxx_DATA) \
	$(confXml_DATA)